package cn.mulanbay.persistent.entity;

import cn.mulanbay.persistent.enums.CleanType;
import cn.mulanbay.persistent.enums.CommonStatus;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 消息通知
 *
 * @author fenghong
 * @create 2022-01-16 10:00
 */
@TableName("database_clean")
public class DatabaseClean implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String name;

    private String tableName;

    private String dateField;

    private Integer days;

    private CleanType cleanType;

    private String extraCondition;

    private LocalDateTime lastCleanTime;

    private Long lastCleanCounts;

    private CommonStatus status;

    private Integer orderIndex;

    private String dsName;

    private LocalDateTime createdTime;

    private LocalDateTime lastModifyTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getDateField() {
        return dateField;
    }

    public void setDateField(String dateField) {
        this.dateField = dateField;
    }

    public Integer getDays() {
        return days;
    }

    public void setDays(Integer days) {
        this.days = days;
    }

    public CleanType getCleanType() {
        return cleanType;
    }

    public void setCleanType(CleanType cleanType) {
        this.cleanType = cleanType;
    }

    public String getExtraCondition() {
        return extraCondition;
    }

    public void setExtraCondition(String extraCondition) {
        this.extraCondition = extraCondition;
    }

    public LocalDateTime getLastCleanTime() {
        return lastCleanTime;
    }

    public void setLastCleanTime(LocalDateTime lastCleanTime) {
        this.lastCleanTime = lastCleanTime;
    }

    public Long getLastCleanCounts() {
        return lastCleanCounts;
    }

    public void setLastCleanCounts(Long lastCleanCounts) {
        this.lastCleanCounts = lastCleanCounts;
    }

    public CommonStatus getStatus() {
        return status;
    }

    public void setStatus(CommonStatus status) {
        this.status = status;
    }

    public Integer getOrderIndex() {
        return orderIndex;
    }

    public void setOrderIndex(Integer orderIndex) {
        this.orderIndex = orderIndex;
    }

    public String getDsName() {
        return dsName;
    }

    public void setDsName(String dsName) {
        this.dsName = dsName;
    }

    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }

    public LocalDateTime getLastModifyTime() {
        return lastModifyTime;
    }

    public void setLastModifyTime(LocalDateTime lastModifyTime) {
        this.lastModifyTime = lastModifyTime;
    }

    @Override
    public String toString() {
        return "DatabaseClean{" +
                "id=" + id +
                ", name=" + name +
                ", tableName=" + tableName +
                ", dateField=" + dateField +
                ", days=" + days +
                ", cleanType=" + cleanType +
                ", extraCondition=" + extraCondition +
                ", lastCleanTime=" + lastCleanTime +
                ", lastCleanCounts=" + lastCleanCounts +
                ", status=" + status +
                ", orderIndex=" + orderIndex +
                ", dsName=" + dsName +
                ", createdTime=" + createdTime +
                ", lastModifyTime=" + lastModifyTime +
                "}";
    }
}
